﻿#include<iostream>
#include"Date.h"

using namespace std;

int main() {
	Date today;

	cout << "今天的日期：" << today << '\n';
	cout << "昨天的日期：" << today.preceding_day() << '\n';
	cout << "前天的日期：" << today.preceding_day().preceding_day() << '\n';

	cout << "明天的日期：" << today.following_day() << '\n';
	cout << "后天的日期：" << today.following_day().following_day() << '\n';

	cout << "从元旦开始经过了" << today.day_of_year() << "天\n";

	cout << "今年" << (today.is_leap() ? "是闰年" : "不是闰年") << '\n';

	Date d;

	cout << "输入一个日期：";
	cin >> d;
	cout << "该年" << (d.is_leap() ? "是闰年" : "不是闰年") << '\n';
	cout << "该天的星期：" << d.day_of_week() << '\n';

	cin.get();
	cin.get();
}